import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/view/Index/Index'
import ExcellentCourse from '@/view/ExcellentCourse/Index' // 精品课
import PublicCourse from '@/view/PublicCourse/Index' // 公开课
import WeChatCourse from '@/view/WeChatCourse/Index' // 微课
import PersonalCenter from '@/view/PersonalCenter/Index' // 个人中心
import SearchPage from '@/view/Index/SearchPage' // 搜索页
import VideoPage from '@/view/VideoPage/Index' // 视频页
import PrivatePlay from '@/view/PrivatePlay/Index' // 私播课
import PrivateMore from '@/view/PrivatePlay/PrivateMore' // 私播课
import LiveBroadcastCourse from '@/view/LiveBroadcastCourse/Index' // 直播课
import LiveMore from '@/view/LiveBroadcastCourse/LiveMore' // 直播详情页
import Logon from '@/view/Register/Index' // 登录页
import Register from '@/view/Register/Register' // 注册页
import News from '@/view/News/index' // 新闻详情页
import MyCollect from '@/view/PersonalCenter/MyCollect.vue' // 我的收藏
import MyCredit from '@/view/PersonalCenter/MyCredit.vue'// 我的学分
import MyNews from '@/view/PersonalCenter/MyNews.vue' // 我的消息
import NewsDetails from '@/view/PersonalCenter/NewsDetails.vue' // 我的消息
import History from '@/view/PersonalCenter/History.vue' // 历史记录
import MyCloud from '@/view/PersonalCenter/MyCloud.vue' // 我的云盘
import Note from '@/view/PersonalCenter/Note.vue' // 笔记
import MyCourse from '@/view/PersonalCenter/MyCourse.vue' // 我的课程
import MyExam from '@/view/PersonalCenter/MyExam.vue' // 我的考试
import ExamDetails from '@/view/PersonalCenter/ExamDetails.vue' // 考试详情
import MyJob from '@/view/PersonalCenter/MyJob.vue' // 我的作业
import JobDetails from '@/view/PersonalCenter/JobDetails.vue' // 作业详情
import MyDiscussion from '@/view/PersonalCenter/MyDiscussion.vue' // 我的讨论
import MyQuestion from '@/view/PersonalCenter/MyQuestion.vue' // 我的题库
import GradeMessage from '@/view/PersonalCenter/GradeMessage.vue' // 成绩管理
import MyLive from '@/view/PersonalCenter/MyLive.vue' // 我的直播
import CourseMessage from '@/view/PersonalCenter/CourseMessage.vue' // 课程管理
import SignMessage from '@/view/PersonalCenter/SignMessage.vue' // 签到管理
import QuizMessage from '@/view/PersonalCenter/QuizMessage.vue' // 提问管理
import QuizMeSon from '@/view/PersonalCenter/QuizMeSon.vue' // 提问管理详情
import Resource from '@/view/PersonalCenter/Resource.vue' // 资源管理
import StudyPlan from '@/view/PersonalCenter/StudyPlan.vue' // 学习计划
import Teacher from '@/view/PersonalCenter/Teacher.vue' // 教师详情
import NoteDetails from '@/view/PersonalCenter/NoteDetails.vue' // 笔记详情
import Statistics from '@/view/PersonalCenter/Statistics.vue' // 统计分析

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      meta: {
        title: '首页'
      }
    },
    {
      path: '/publiccourse',
      name: 'PublicCourse',
      component: PublicCourse,
      meta: {
        title: '公开课'
      }
    },
    {
      path: '/excellentcourse',
      name: 'ExcellentCourse',
      component: ExcellentCourse,
      meta: {
        title: '精品课'
      }
    },
    {
      path: '/wechatcourse',
      name: 'WeChatCourse',
      component: WeChatCourse,
      meta: {
        title: '微课'
      }
    },
    {
      path: '/searchpage/:name?',
      name: 'SearchPage',
      component: SearchPage,
      meta: {
        title: '搜索页面'
      }
    },
    {
      path: '/videopage/:videoId',
      name: 'VideoPage',
      component: VideoPage,
      meta: {
        title: '视频播放'
      }
    },
    {
      path: '/privateplay',
      name: 'PrivatePlay',
      component: PrivatePlay,
      meta: {
        title: '私播课'
      }
    },
    {
      path: '/privatemore',
      name: 'PrivateMore',
      component: PrivateMore,
      meta: {
        title: '私播课详情'
      }
    },
    {
      path: '/livebroadcastcourse',
      name: 'LiveBroadcastCourse',
      component: LiveBroadcastCourse,
      meta: {
        title: '直播课'
      }
    },
    {
      path: '/livemore',
      name: 'LiveMore',
      component: LiveMore,
      meta: {
        title: '直播详情页'
      }
    },
    {
      path: '/logon',
      name: 'Logon',
      component: Logon,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/register',
      name: 'Register',
      component: Register,
      meta: {
        title: '注册'
      }
    },
    {
      path: '/news/:newsId',
      name: 'News',
      component: News,
      meta: {
        title: '新闻详情'
      }
    },
    {
      path: '/personalcenter',
      name: 'PersonalCenter',
      component: PersonalCenter,
      meta: {
        title: '个人中心'
      }
    },
    {
      path: '/mycollect',
      name: 'MyCollect',
      component: MyCollect,
      meta: {
        title: '我的收藏'
      }
    },
    {
      path: '/mycredit',
      name: 'MyCredit',
      component: MyCredit,
      meta: {
        title: '我的学分'
      }
    },
    {
      path: '/mynews',
      name: 'MyNews',
      component: MyNews,
      meta: {
        title: '我的消息'
      }
    },
    {
      path: '/newsdetails',
      name: 'NewsDetails',
      component: NewsDetails,
      meta: {
        title: '消息详情'
      }
    },
    {
      path: '/history',
      name: 'History',
      component: History,
      meta: {
        title: '历史记录'
      }
    },
    {
      path: '/mycloud',
      name: 'MyCloud',
      component: MyCloud,
      meta: {
        title: '我的云盘'
      }
    },
    {
      path: '/note',
      name: 'Note',
      component: Note,
      meta: {
        title: '我的笔记'
      }
    },
    {
      path: '/mycourse',
      name: 'MyCourse',
      component: MyCourse,
      meta: {
        title: '我的课程'
      }
    },
    {
      path: '/myexam',
      name: 'MyExam',
      component: MyExam,
      meta: {
        title: '我的考试'
      }
    },
    {
      path: '/examdetails',
      name: 'ExamDetails',
      component: ExamDetails,
      meta: {
        title: '考试详情'
      }
    },
    {
      path: '/myjob',
      name: 'MyJob',
      component: MyJob,
      meta: {
        title: '我的作业'
      }
    },
    {
      path: '/jobdetails',
      name: 'JobDetails',
      component: JobDetails,
      meta: {
        title: '作业详情'
      }
    },
    {
      path: '/mydiscussion',
      name: 'MyDiscussion',
      component: MyDiscussion,
      meta: {
        title: '我的讨论'
      }
    },
    {
      path: '/myquestion',
      name: 'MyQuestion',
      component: MyQuestion,
      meta: {
        title: '我的题库'
      }
    },
    {
      path: '/grademessage',
      name: 'GradeMessage',
      component: GradeMessage,
      meta: {
        title: '成绩管理'
      }
    },
    {
      path: '/mylive',
      name: 'MyLive',
      component: MyLive,
      meta: {
        title: '我的直播'
      }
    },
    {
      path: '/coursemessage',
      name: 'CourseMessage',
      component: CourseMessage,
      meta: {
        title: '课程管理'
      }
    },
    {
      path: '/signmessage',
      name: 'SignMessage',
      component: SignMessage,
      meta: {
        title: '签到管理'
      }
    },
    {
      path: '/quizmessage',
      name: 'QuizMessage',
      component: QuizMessage,
      meta: {
        title: '提问管理'
      }
    },
    {
      path: '/quizmeson',
      name: 'QuizMeSon',
      component: QuizMeSon,
      meta: {
        title: '提问管理详情'
      }
    },
    {
      path: '/resource',
      name: 'Resource',
      component: Resource,
      meta: {
        title: '资源管理'
      }
    },
    {
      path: '/studyplan',
      name: 'StudyPlan',
      component: StudyPlan,
      meta: {
        title: '学习计划'
      }
    },
    {
      path: '/teacher',
      name: 'Teacher',
      component: Teacher,
      meta: {
        title: '教师详情'
      }
    },
    {
      path: '/notedetails',
      name: 'NoteDetails',
      component: NoteDetails,
      meta: {
        title: '笔记详情'
      }
    },
    {
      path: '/statistics',
      name: 'Statistics',
      component: Statistics,
      meta: {
        title: '统计分析'
      }
    }
  ]
})
